/*
 *
 *      Copyright (c) 2018-2025, proj All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: proj
 *
 */

package com.ykht.proj.activity.api.feign;


import com.ykht.proj.activity.entity.VEnt;
import com.ykht.proj.common.core.constant.SecurityConstants;
import com.ykht.proj.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;


/**
 * 企业服务 服务
 */
@FeignClient(contextId = "remoteEntService", value = ServiceNameConstants.ACTIVITY_SERVICE)
public interface RemoteEntService {

	/**
	 * 根据 登录ID（用户ID） 获取企业列表
	 *
	 * @param loginId 登录ID（用户ID）
	 * @return
	 */
	@PostMapping(value = "vent/getByLoginId/{loginId}")
	List<VEnt> getByLoginId(@PathVariable("loginId") Integer loginId, @RequestHeader(SecurityConstants.FROM) String from);

}
